-- GENERATED SPELL FOR [Deadwood Pathfinder] --


function spell0_7155(pUnit, Event) --@Curse of the Deadwood,Heal--
pUnit:FullCastSpellOnTarget(13583,pUnit)
pUnit:RegisterEvent('Sorts_7155', 2000, 1)
end

function spell1_7155(pUnit, Event) --@Piercing Shot,n/a--
pUnit:FullCastSpellOnTarget(6685,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7155', 15000, 1)
end

function spell2_7155(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7155', 679, 1)
end

function Sorts_7155(pUnit, Event)
local choix_sorts_7155 = math.random(0, 2)
if choix_sorts_7155 == 0 then
pUnit:RegisterEvent('spell0_7155', 1, 1)
end
if choix_sorts_7155 == 1 then
pUnit:RegisterEvent('spell1_7155', 1, 1)
end
if choix_sorts_7155 == 2 then
pUnit:RegisterEvent('spell2_7155', 1, 1)
end
end

function mob7155_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7155', math.random(1500, 3000), 1)
end

function mob7155_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7155_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7155_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7155, 1, 'mob7155_Action')
RegisterUnitEvent(7155, 2, 'mob7155_Leave')
RegisterUnitEvent(7155, 3, 'mob7155_Kill')
RegisterUnitEvent(7155, 4, 'mob7155_Die')
